package com.example.mengtianspringboot.Mapper;

import com.example.mengtianspringboot.Pojo.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface StudentMapper {
    @Select("select * from students where studentName=#{username}")
    Student findByStudentName(String username);

    @Insert("insert into students(studentName,StudentNumber)" +
            "values(#{username},#{password})")
    void add(String username, String password);
}
